import { getEditorProps, getGridEditorCommonProps } from './common';

/**
 * 获取代码编辑器的props
 *
 * @export
 * @template C
 * @return {*} 
 */
export function getCodeProps<C>() {
  return {
    ...getEditorProps<C>(),
    value: String,
    language: {
      type: String,
    },
    theme: {
      type: String,
    },
  };
}

/**
 * 获取表格代码编辑器的props
 *
 * @export
 * @template C
 * @return {*} 
 */
export function getGridCodeProps<C>() {
  return { ...getCodeProps<C>(), ...getGridEditorCommonProps() };
}
